Skip to content

Conversation

@sampan-s-nayak
Copy link
Contributor

@sampan-s-nayak sampan-s-nayak commented Jan 8, 2026

Description

test_token_auth_integration is failing on windows as dashboard http agent seems to be failing to bind to a port (see attached logs). this pr switches to using dynamic port allocation to try and fix this problem

2026-01-06 08:09:33,356	ERROR http_server_agent.py:76 -- Agent port #52365 failed to bind after 6 attempts.
Traceback (most recent call last):
  File "C:\rayci\python\ray\dashboard\http_server_agent.py", line 50, in _start_site_with_retry
    await site.start()
  File "C:\Miniconda3\lib\site-packages\aiohttp\web_runner.py", line 121, in start
    self._server = await loop.create_server(
  File "C:\Miniconda3\lib\asyncio\base_events.py", line 1519, in create_server
    raise OSError(err.errno, 'error while attempting '
OSError: [Errno 10048] error while attempting to bind on address ('172.29.123.207', 52365): only one usage of each socket address (protocol/network address/port) is normally permitted
2026-01-06 08:09:33,356	ERROR agent.py:222 -- Failed to start HTTP server with exception: [Errno 10048] error while attempting to bind on address ('172.29.123.207', 52365): only one usage of each socket address (protocol/network address/port) is normally permitted. The agent will stay alive but the HTTP service will be disabled.
Traceback (most recent call last):
  File "C:\rayci\python\ray\dashboard\agent.py", line 213, in run
    await self.http_server.start(modules)
  File "C:\rayci\python\ray\dashboard\http_server_agent.py", line 120, in start
    site = await self._start_site_with_retry()
  File "C:\rayci\python\ray\dashboard\http_server_agent.py", line 83, in _start_site_with_retry
    raise last_exception
  File "C:\rayci\python\ray\dashboard\http_server_agent.py", line 50, in _start_site_with_retry
    await site.start()
  File "C:\Miniconda3\lib\site-packages\aiohttp\web_runner.py", line 121, in start
    self._server = await loop.create_server(
  File "C:\Miniconda3\lib\asyncio\base_events.py", line 1519, in create_server
    raise OSError(err.errno, 'error while attempting '
OSError: [Errno 10048] error while attempting to bind on address ('172.29.123.207', 52365): only one usage of each socket address (protocol/network address/port) is normally permitted

successful runs:

Related issues

Fixes anyscale#560

Additional information

Optional: Add implementation details, API changes, usage examples, screenshots, etc.

@gemini-code-assist
Copy link
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@sampan-s-nayak sampan-s-nayak added the go add ONLY when ready to merge, run all tests label Jan 8, 2026
@sampan-s-nayak sampan-s-nayak added go add ONLY when ready to merge, run all tests and removed go add ONLY when ready to merge, run all tests labels Jan 9, 2026
@sampan-s-nayak sampan-s-nayak marked this pull request as ready for review January 12, 2026 10:55
@sampan-s-nayak sampan-s-nayak requested a review from a team as a code owner January 12, 2026 10:55
@ray-gardener ray-gardener bot added the core Issues that should be addressed in Ray Core label Jan 12, 2026
@dayshah dayshah merged commit efce563 into ray-project:master Jan 12, 2026
6 checks passed
AYou0207 pushed a commit to AYou0207/ray that referenced this pull request Jan 13, 2026
rushikeshadhav pushed a commit to rushikeshadhav/ray that referenced this pull request Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI test windows://python/ray/tests:test_token_auth_integration is consistently_failing

2 participants